Package com.cisco.pt.ptmp
Interface PacketTracerSessionFactory
- All Known Implementing Classes:
PacketTracerMUSessionFactoryImpl,PacketTracerSessionFactoryImpl
public interface PacketTracerSessionFactory
- Author:
- packettracerexapps@external.cisco.com
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Attempts to close all open PT sessionsopenSession(String host, int port) openSession(String host, int port, ConnectionNegotiationProperties connectionNegotiationProperties) int
-
Method Details
-
close
Attempts to close all open PT sessions- Throws:
IOException- The exception
-
openSession
- Parameters:
host- Stringport- int- Returns:
- a new
PacketTracerSession - Throws:
IOException- The exception
-
openSession
PacketTracerSession openSession(String host, int port, ConnectionNegotiationProperties connectionNegotiationProperties) throws IOException - Parameters:
host- Stringport- intconnectionNegotiationProperties- The properties- Returns:
- a new
PacketTracerSession - Throws:
IOException- The exception
-
openSessionCount
- Returns:
- number of open sessions
- Throws:
IOException- the exception
-